package com.chinacoal.hr.levelapi.client.fallback;

import com.chinacoal.hr.levelapi.client.HolidayLawClient;
import com.chinacoal.hr.levelapi.client.response.Result;
import com.chinacoal.hr.levelapi.client.response.ResultCode;
import com.chinacoal.hr.levelapi.client.response.ResultGenerator;
import com.chinacoal.hr.levelapi.entity.HolidayLaws;

/**
 * Created by jinyabin on 2020/10/29.
 */
public class HolidayLawClientFallback implements HolidayLawClient{


    @Override
    public Result list(long page, long limit, String year, String hdate) {
        return ResultGenerator.genFailedResult(ResultCode.REQUEST_FAILED);
    }

    @Override
    public Result add(HolidayLaws record) {
        return ResultGenerator.genFailedResult(ResultCode.REQUEST_FAILED);
    }

    @Override
    public Result update(String holidayId, HolidayLaws record) {
        return ResultGenerator.genFailedResult(ResultCode.REQUEST_FAILED);
    }

    @Override
    public Result delete(String holidayId) {
        return ResultGenerator.genFailedResult(ResultCode.REQUEST_FAILED);
    }

    @Override
    public Result getLawMgr(String startDate, String startTimeType, String endDate, String endTimeType) {
        return ResultGenerator.genFailedResult(ResultCode.REQUEST_FAILED);
    }
}
